import { request } from "@/api/service.js"
/**
   * @description 获取店铺账号
   * @param {Object} data 
   */
export function getShopAccount (data = {}){
  // 接口请求
  return request({
    url: '/shopAccount/getShopAccount',
    method: 'post',
    data: data
  })
}
/**
   * @description 获取店铺账号(后台)
   * @param {Object} data 
   */
export function getShopAccountBack (data = {}){
    // 接口请求
    return request({
      url: '/shopAccount/getShopAccountBack',
      method: 'post',
      data: data
    })
 }
/**
   * @description 添加店铺账号
   * @param {Object} data 
   */
export function addShopAccount (data = {}){
    // 接口请求
    return request({
      url: '/shopAccount/addShopAccount',
      method: 'post',
      data: data
    })
 }
/**
   * @description 修改店铺账号
   * @param {Object} data 
   */
export function updateShopAccount (data = {}){
    // 接口请求
    return request({
      url: '/shopAccount/updateShopAccount',
      method: 'post',
      data: data
    })
 }
 /**
   * @description 冻结店铺账号
   * @param {Object} data 
   */
export function freezeShopAccount (data = {}){
    // 接口请求
    return request({
      url: '/shopAccount/freezeShopAccount',
      method: 'post',
      data: data
    })
 }
 /**
   * @description 解冻店铺账号
   * @param {Object} data 
   */
 export function thawShopAccount (data = {}){
    // 接口请求
    return request({
      url: '/shopAccount/thawShopAccount',
      method: 'post',
      data: data
    })
 }